<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>axios的post请求</title>
    <!--引入axios-->
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

    <script>

        axios.post("http://localhost:8989/axios/user/save",{username:'小龙',password:'123123'})
            .then(function (res) {
                console.log(res);
            })
            .catch(function (err) {
                console.log(err);
            })

    </script>

</head>
<body>

</body>
</html>